package com.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sys.dao.PersonMapper;
import com.sys.pojo.Person;

@Service
public class PersonServiceImpl implements PersonService {
	@Autowired
	private PersonMapper personMapper;
	
	@Override
	public List<Person> selectAllPerson() {
		return personMapper.selectAllPerson();
	}

	@Override
	public Person selectPersonById(int id) {
		return personMapper.selectPersonById(id);
	}

	@Override
	public List<Person> selectPersonBySex(char sex) {
		return personMapper.selectPersonBySex(sex);
	}

	@Override
	public List<Person> addPerson(Person person) {
		return personMapper.addPerson(person);
	}

	

}
